package dnet

/**
  未完成
*/

import (
	"net"
)

type ChanTcpClient struct {
	Conn          net.Conn
	RecvBlockSize uint16
	RecvChan      chan []byte // 接收通道
}

func NewChanTcpClient() *ChanTcpClient {
	client := &ChanTcpClient{
		RecvChan:      make(chan []byte),
		RecvBlockSize: 1024,
	}
	return client
}

func (this *ChanTcpClient) Connect(remoteAddr string) (net.Conn, error) {
	return net.Dial("tcp", remoteAddr)
}
